const automator = require('miniprogram-automator');

const launch = function (params) {
	const { projectPath } = params;
	automator.launch({
		projectPath: projectPath,
	}).then(miniProgram => {
		return miniProgram.reLaunch(
			'/packages/doctorwork/pages/searchResult/index',
		);

	}).then(page => {
		return page.waitFor(500);
	})

}

module.exports = launch;